// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Utils from './utils/utils'

const FastClick = require('fastclick')
FastClick.attach(document.body)
Vue.config.productionTip = false


var openid = '';
if (Utils.getUrlKey('openid')) {
  openid = Utils.getUrlKey('openid');
  sessionStorage.setItem('openid', openid);
} else {
  sessionStorage.setItem('openid', sessionStorage.getItem('openid'));
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
